package com.component;

import com.components.AppConfig;
import com.components.Eoo;
import com.components.EooService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Arrays;

/**
 * @author fanxiao  2022/3/29
 * @since 1.0.0
 */
public class AppStarter {

  public static void main(String[] args) {

	  AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
	  applicationContext.register(AppConfig.class);
	  applicationContext.refresh();

	  Foo foo = applicationContext.getBean(Foo.class);
	  System.out.println(foo.foo());
  }

}
